# g={7, 8, 9}
# print(g,type(g))
# num1 = "100"
# num2 = 50
# # 将 num1 转换为整数并赋值给变量 num3
# num3 = str(num2)
# # 计算 num3 和 num2 的和，赋值给变量 total
# total = num3 + num1
# print(total)
# a=69
# if a >= 90 :
# 	print('优秀')
# elif a >=80 :
# 	print('良好')
# elif a >=70 :
# 	print('中等')
# elif a >= 60:
#     print('及格')
# else:
#     print('不及格')
# age=25
# if age >= 60 :
# 	print('老年人')
# elif age >=18 :
# 	print('成年人')
# elif age >=13 :
# 	print('青少年')
# else:
#     print('儿童')
# a=104
# if a%3 ==0 and a%5 == 0 and a%7 == 0:
#     print('这个数能同时被3、5、7整除')
# else:
#     print('这个数不能同时被3、5、7整除')
# name='小明'
# print(f'欢迎{name}同学!')

# lst=[1,2,3,4]
# for i in range(4):
#     lst[i]=int(input(f'请输入第{i+1}个数：'))
# print(sorted(lst))

# num=int(input('请输入一个三位数：'))
# a=num//100
# b=(num-a*100)//10
# c=(num-a*100-b*10)
# print(f'百位是{a}，十位是{b}，个位是{c}')

# while True:
#     num=float(input('请输入一个0~100的数字：'))
#     if num<0:
#         num=-num
#     if num > 100:
#         print('游戏结束')
#         break
#     if num*10%10!=0:
#         print(num)
#         num=int(num)
#     if 90<=num<=100:
#         print('评分为A')
#     elif 80<=num<90:
#         print('评分为B')
#     elif 70<=num<80:
#         print('评分为C')
#     elif 60 <= num < 70:
#         print('评分为D')
#     elif 0 <= num < 60:
#         print('评分为E')

# print('0-100之间，能被3整除的数有：',end='')
# for i in range(1,101):
#     if i%3==0:
#         print(i,end=' ')

# n=100
# print('100-999之间的水仙花数有:',end='')
# while n<=999:
#     a = n // 100
#     b=(n-a*100)//10
#     c=(n-a*100-b*10)
#     if n==a**3+b**3+c**3:
#         print(n,end=' ')
#     n+=1
# year=int(input('输入年份:'))
# month=int(input('输入月份:'))
# d=int(input('输入日期:'))
# day=[0,31,28,31,30,31,30,31,31,30,31,30,31]
# if year%4==0 and year%100!=0 or year%400==0:
#     day[2]=29
# s=0                         #另一种做法
# for i in range(month):      #a=[:month:]
#     s+=day[i]               #days=sum(a)+day
# s+=d
# print(f'这一天是这一年的第{s}天')

